package senior.DateExer;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * 输出今年的国庆节（10.1）是周几
 *
 * @author shkstart
 * @creat 2022-04-16:03
 */
public class Exer3 {
    public static void main(String[] args) {
        Calendar cal = Calendar.getInstance();
        cal.set(2022, 9, 1);
        //System.out.println(cal.getTime());
        SimpleDateFormat sdf = new SimpleDateFormat("E");
        String format = sdf.format(cal.getTime());
        System.out.println("今年国庆节是" + format);

    }
}
